package Lab08.Q6;

import java.util.HashMap;
import java.util.Map;
import java.util.Random;

public class TwoColorBall {
    public static void main(String[] args) {
        Map<Integer,String> ans=new HashMap();
        while(ans.size()!=6){
            int num=(int)(Math.random()*33)+1;
            if(!ans.containsKey(num)){
                    ans.put(num,"红球");
            }
        }
        int num=(int)(Math.random()*16)+1;
        ans.put(num,"蓝球");
        //System.out.println(ans);
        for(Map.Entry<Integer,String> entry:ans.entrySet()){
            System.out.println(entry.getValue()+" "+entry.getKey());
        }
    }
}